<?php
/**
 * @Author: liuhongbin
 * @Email: 514660094@qq.com
 * @Date: 2019-02-12 16:15:10
 * @Description:
 * @LastEditors: liuhongbin
 * @LastEditTime: xxx
 */

namespace app\controller\wechat;

use app\common\controller\WechatController;
use hiduoke\services\WechatService;
use think\App;

class Index extends WechatController
{
    /**
     * @var WechatService
     */
    private $wechat;

    public function __construct(App $app, WechatService $wechat)
    {
        parent::__construct($app);
        $this->wechat = $wechat;
    }

    public function index()
    {
        $this->wechat->getOrderConfig();
    }

    public function user()
    {
        $this->assign('assign', 'assig1n');
        return $this->fetch("user", ['user' => '渲染了User']);
    }
}
